import axios from "@/axios";

// 发送邮箱验证码
export function sendEmailCode(email, type) {
  return axios.get("/common/sendEmailCode", {
    params: {
      email,
      type
    }
  })
}

// 注册
export function registerService(data) {
  return axios.post("/common/emailRegister", data)
}

// 忘记密码-找回密码
export function forgetPasswordService(data) {
  return axios.put("/common/forgetPassword", data)
}
